﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Exhibition.Dao.ViewModel;
using Exhibition.Service;

namespace Exhibition.Manage
{
    public partial class ProductClassList : BaseAdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            BuildTree();
        }

        private void BuildTree()
        {
            List<ProductClassModel> navs = CenterService.productClassService.GetListByPid(CurrentSite.Id);
            treeList.KeyFieldName = "Id";
            treeList.ParentFieldName = "PreID";
            treeList.DataSource = navs;
            treeList.DataBind();
           
        }
    }
}